import request from '@/plugins/axios'

export function getAlarmList(params = {}) {
	const data = request({
		url: `sas/alarms`,
		method: 'get',
		params,
	})
	return data
}

export function getAlarmDetail(params: { moid: any }) {
	const data = request({
		url: `sas/alarms/${params.moid}`,
		method: 'get',
	})
	return data
}
// 设置告警项
export function getAlarmSetting() {
	const data = request({
		url: `/sas/alarms/setting`,
		method: 'get',
	})
	return data
}
/**获取全部告警项 */
export function queryAlarmSettingGroup() {
	return request({
		url: `/sas/alarms/groups`,
		method: 'get',
	})
}
export function setAlarmSetting(params: any) {
	return request({
		url: `/sas/alarms/setting`,
		method: 'post',
		data: params,
	})
}
